﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public abstract class BaseEntity<T> where T : BaseEntity<T>, new()
    {
        private static IGeneralRepository<T> _repository;

        public static IGeneralRepository<T> Objects
        {
            get { return _repository; }
        }

        static BaseEntity()
        {
            
            _repository = new GeneralRepository<T>();
        }
    }
}
